package com.shuangxi.service;

import com.shuangxi.config.AppConfig;
import com.shuangxi.spring.MyApplicationContext;

public class Test {
    public static void main(String[] args) {
        MyApplicationContext applicationContext = new MyApplicationContext(AppConfig.class);
        UserInterface userService = (UserInterface) applicationContext.getBean(UserService.class);
        System.out.println("test方法：" + userService.test());

    }
}
